cmake_minimum_required(VERSION 3.26)
project(template C)

set(CMAKE_C_STANDARD 11)

include_directories(
        .
        drivers
        tilib
        tilib/third_party/CMSIS/Core/Include
        soft
)

file(GLOB_RECURSE source
        "drivers/*.*"
        "tilib/*.*"
        "soft/*.*"
        "./*.*"
)

add_compile_definitions(
        __MSPM0G3507__
)

add_executable(template ${source})